import VueRouter from 'vue-router'
import index from '../../components/index.vue'
import selectCity from '../../components/selectCity.vue'
import login from '../../components/login.vue'
import register from '../../components/register.vue'
import takeoutfood from '../../components/takeoutfood.vue'
import detail from '../../components/detail.vue'
import selectDistrict from '../../components/selectDistrict.vue'
export default new VueRouter({
    routes: [
        {
            path: '/',
            component: index
        },
        {
            path: '/selectCity',
            component: selectCity
        },
        {
            path: '/login',
            component: login
        },
        {
            path:'/register',
            component: register
        },
        {
            path:'/takeoutfood',
            component: takeoutfood
        },
        {
            path:'/detail/:id',
            component: detail
        },
        {
            path:'/selectDistrict',
            component: selectDistrict
        }
    ]
});